package com.jxd.project.absence.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxd.project.absence.dao.IDicDao;
import com.jxd.project.absence.model.Dic;
import com.jxd.project.absence.service.IDicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName DicServiceImpl
 * @Description TODO
 * @Author 李杨
 * @Date 2025/10/9 17:16
 * @Version 1.0
 */
@Service
public class DicServiceImpl extends ServiceImpl<IDicDao, Dic> implements IDicService {
    @Autowired
    private IDicDao dicDao;
    @Override
    public List<Dic> getAbsenceType() {
        QueryWrapper<Dic> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("type","请假类型");
        return dicDao.selectList(queryWrapper);
    }

    @Override
    public int getYearDays(int years) {
        return dicDao.getYearDays(years);
    }

}
